/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pagerank;

/**
 *
 * @author Sefik
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String fileName = "D:\\test3.txt";
        //fileName = "D:\\test2.txt";
        fileName = "D:\\default.txt";
        // TODO code application logic here

        try{
            System.out.println("Opening file " + args[0] + ".");
            FileInput.FileInput(args[0]);
        }
        catch(Exception e){
            System.out.println("No argument file, using default file " + fileName + " to open.");
            FileInput.FileInput(fileName);
        }

        /*
        if (args != null){
            System.out.println("No argument file, using default file " + fileName + " to open.");
            FileInput.FileInput(fileName);
        }
        else {
            System.out.println("Opening file " + args[0] + ".");
            FileInput.FileInput(args[0]);
        }
         
         */
    }

}
